package uestc.lj.gulishop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import uestc.lj.common.utils.PageUtils;
import uestc.lj.common.utils.R;
import uestc.lj.gulishop.member.entity.MemberEntity;
import uestc.lj.gulishop.member.exception.PhoneExistException;
import uestc.lj.gulishop.member.vo.MemberLoginVO;
import uestc.lj.gulishop.member.vo.MemberRegisterVO;
import uestc.lj.gulishop.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author crazlee
 * @email peterlee0@163.com
 * @date 2021-05-21 19:16:56
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegisterVO memberRegisterVO);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    MemberEntity login(MemberLoginVO vo);

    MemberEntity login(SocialUser socialUser) throws Exception;

    R memberOrder(Map<String, Object> map);
}

